package cn.unuuc.cwl.order.service.openfeign;


import cn.unuuc.cwl.order.model.qo.StorageQo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "integrated-storage")
public interface StorageOpenFeignService {

    /**
     * 远程调用服务，减少指定商品库存
     */
    @RequestMapping(value = "/storage", method = RequestMethod.POST)
    String deductStorage(StorageQo storageQo);
}